home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 2 / CU Amiga Magazine's Super CD-ROM 02 (1996)(EMAP Images)(GB)[!][issue 1996-04].iso / magazine / amiga_e / amigae.sept.archive / 000015_crash!fipnet.fi!cave!jay_Sat, 4 Sep 93 06:23:14 PST.msg < prev    next >
Text File  |  1993-11-02  |  3KB  |  78 lines

  1. Received: by bkhouse.cts.com (V1.16/Amiga)
  2.     id AA00000; Sat, 4 Sep 93 06:23:14 PST
  3. Received: from eunet.fi by crash.cts.com with smtp
  4.     (Smail3.1.28.1 #18) id m0oYSpY-0000htC; Thu, 2 Sep 93 21:33 PDT
  5. Received: by eunet.fi with UUCP id AA05235
  6.   (5.65c+l/IDA-1.4.4 for bkhouse.cts.com!amigae); Fri, 3 Sep 1993 07:32:51 +0300
  7. Received: by fipnet.fi (smail2.5)
  8.     id AA05347; 3 Sep 93 06:51:50 DS
  9. Received: by cave.fipnet.fi (V1.16/Amiga)
  10.     id AA007z7; Thu, 2 Sep 93 21:14:44 EET
  11. Date: Thu, 2 Sep 93 21:14:44 EET
  12. Message-Id: <9309021914.AA007z6@cave.fipnet.fi>
  13. From: jay@cave.fipnet.fi (Jussi Sarkkinen)
  14. To: amigae@bkhouse.cts.com
  15. Subject: Re: Fade Routine
  16.  
  17. >    Well, why not? I mean CHANGE the values in whatever COLOR NUMBER you
  18. >want to fade.  How does a palette requester change the colors? just do
  19. >whatever it does INTERNALLY...I'm not sure REGISTER was the right term, but
  20. >you get what I mean...
  21.  
  22.      I think that this would be something you are looking for: ;)
  23.  
  24. --- cut ---
  25.  graphics.library/LoadRGB4                           graphics.library/LoadRGB4
  26.  
  27.    NAME
  28.         LoadRGB4 -- Load RGB color values from table.
  29.  
  30.    SYNOPSIS
  31.         LoadRGB4( vp, colors , count )
  32.                  a0     a1     d0:16
  33.  
  34.         void LoadRGB4( struct ViewPort *, UWORD *, WORD);
  35.  
  36.    FUNCTION
  37.         load the count words of the colormap from table starting at
  38.         entry 0.
  39.  
  40.    INPUTS
  41.         vp - pointer to ViewPort, whose colors you wish to change
  42.         colors - pointer to table of RGB values set up as an array
  43.                  of USHORTS
  44.                         background--  0x0RGB
  45.                         color1    --  0x0RGB
  46.                         color2    --  0x0RGB
  47.                          etc.         UWORD per value.
  48.                 The colors are interpreted as 15 = maximum intensity.
  49.                                               0 = minimum intensity.
  50.         count   = number of UWORDs in the table to load into the
  51.           colormap starting at color 0(background) and proceeding
  52.           to the next higher color number
  53.  
  54.    RESULTS
  55.         The ViewPort should have a pointer to a valid ColorMap to store
  56.         the colors in.
  57.         Updates the hardware copperlist to reflect the new colors.
  58.         Updates the intermediate copperlist with the new colors.
  59.  
  60.    BUGS
  61.  
  62.         NOTE: Under V36 and up, it is not safe to call this function
  63.         from an interrupt, due to semaphore protection of graphics
  64.         copper lists.
  65.  
  66.    SEE ALSO
  67.         SetRGB4() GetRGB4() GetColorMap() graphics/view.h
  68. --- cut ---
  69.  
  70. ... and LoadRGB32 for AGA/OS3 purposes... Or maybe SetRGB4() would be better 
  71. conserning fading. But examine the autodocs. ;) I have tried to do somekind 
  72. of fading routine with AmigaE and it seems to fade, just that it crashes 
  73. allways ... Well, if I get it working I can post it here...
  74.  
  75. Cya
  76.  
  77. --
  78. -- Three little Gnus... Jussi Sarkkinen, jay@cave.fipnet.fi.